<style type="text/css">

</style>
<script id="listTpl" type="text/template">
    <% _.each(res.data,function(group){ %>
        <% if(group.group_id!=0){ %>
            <tbody class="group groupLine">
                <tr>
                    <td colspan="4">
                        <div class="tdLine">
                            <span><%=group.group_name%></span>
                            <a class="iconfont" href="javascript:void(0)">&#xe673;</a>
                            <a class="iconfont" href="javascript:void(0)">&#xe695;</a>
                            <div class="rtCon">
                                <span>默认结算价：供货价+2元</span>
                                <a class="ml5" href="javascript:void(0)">分销价格配置</a>
                                <a class="iconfont ml5" href="javascript: void(0)">&#xe684;</a>
                                <a class="iconfont ml5" href="javascript: void(0)">&#xe634;</a>
                            </div>
                        </div>
                    </td>
                </tr>
            </tbody>
            <% _.each(group.group_members,function(item){ %>
                <tbody class="groupItem pBox bgGray">
                    <tr>
                        <td class="w240 ltTxt">
                            <span class="colorBlue"><%=item.dname%></span>
                            <span>（555555）</span>
                        </td>
                        <td  class="w170 ltTxt">
                            <span>xxxxxxxx</span>
                            <span>15000000000</span>
                        </td>
                        <td  class="w120">4533</td>
                        <td class="w230 rtTxt">
                            <a class="aList" href="javascript:void(0)">更换分组</a>
                            <a class="aList" href="javascript:void(0)">授信/预存</a>
                            <a class="aList" href="javascript:void(0)">微店二维码</a>
                            <a class="aList" href="javascript:void(0)">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="w240 ltTxt">
                            <span class="colorBlue">XXXXXXXX旅行社</span>
                            <span>（555555）</span>
                        </td>
                        <td  class="w170 ltTxt">
                            <span>xxxxxxxx</span>
                            <span>15000000000</span>
                        </td>
                        <td  class="w120">4533</td>
                        <td class="w230 rtTxt">
                            <a class="aList" href="javascript:void(0)">更换分组</a>
                            <a class="aList" href="javascript:void(0)">授信/预存</a>
                            <a class="aList" href="javascript:void(0)">微店二维码</a>
                            <a class="aList" href="javascript:void(0)">删除</a>
                        </td>
                    </tr>
                </tbody>
            <% }) %>
        <% }else{ %>
            <tbody class="group groupLine unGroup">
                <tr>
                    <td colspan="4">
                        <div class="tdLine">
                            <span>未分组</span>
                        </div>
                    </td>
                </tr>
            </tbody>
            <tbody class="pBox groupItem">
            <% _.each(group.group_members,function(item){ %>
                <tr>
                    <td class="w240 ltTxt">
                        <span class="colorBlue"><%=item.dname%></span>
                        <span>（555555）</span>
                    </td>
                    <td  class="w170 ltTxt">
                        <span>xxxxxxxx</span>
                        <span>15000000000</span>
                    </td>
                    <td  class="w120">4533</td>
                    <td class="w230 rtTxt">
                        <a class="aList" href="javascript:void(0)">更换分组</a>
                        <a class="aList" href="javascript:void(0)">授信/预存</a>
                        <a class="aList" href="javascript:void(0)">微店二维码</a>
                        <a class="aList" href="javascript:void(0)">删除</a>
                    </td>
                </tr>
                <tr>
                    <td class="w240 ltTxt">
                        <span class="colorBlue">XXXXXXXX旅行社</span>
                        <span>（555555）</span>
                    </td>
                    <td  class="w170 ltTxt">
                        <span>xxxxxxxx</span>
                        <span>15000000000</span>
                    </td>
                    <td  class="w120">4533</td>
                    <td class="w230 rtTxt">
                        <a class="aList" href="javascript:void(0)">更换分组</a>
                        <a class="aList" href="javascript:void(0)">授信/预存</a>
                        <a class="aList" href="javascript:void(0)">微店二维码</a>
                        <a class="aList" href="javascript:void(0)">删除</a>
                    </td>
                </tr>
                <tr>
                    <td class="w240 ltTxt">
                        <span class="colorBlue">XXXXXXXX旅行社</span>
                        <span>（555555）</span>
                    </td>
                    <td  class="w170 ltTxt">
                        <span>xxxxxxxx</span>
                        <span>15000000000</span>
                    </td>
                    <td  class="w120">4533</td>
                    <td class="w230 rtTxt">
                        <a class="aList" href="javascript:void(0)">更换分组</a>
                        <a class="aList" href="javascript:void(0)">授信/预存</a>
                        <a class="aList" href="javascript:void(0)">微店二维码</a>
                        <a class="aList" href="javascript:void(0)">删除</a>
                    </td>
                </tr>
            <%}) %>
            </tbody>
        <% } %>
    <% }) %>
</script>